package com.zmj.sy.mom.srv.aps.controller;

import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseListResVo;
import com.zmj.sy.mom.srv.aps.bean.vo.weekday.WeekdayListReqVo;
import com.zmj.sy.mom.srv.aps.bean.vo.weekday.WeekdayListResVo;
import com.zmj.sy.mom.srv.aps.service.WeekdayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "工作日")
@RestController
@RequestMapping("/weekday")
public class WeekdayController {

    private final WeekdayService weekdayService;

    @ApiOperation("1.4.1 日历列表")
    @GetMapping("/list")
    public BaseListResVo<WeekdayListResVo> add(WeekdayListReqVo reqVo) {
        return weekdayService.list(reqVo);
    }
}
